<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-Control" content="no-cache">
	<meta http-equiv="Expires" content="0">
	<title>MIS管理系统-登录</title>
	<link href="${pageContext.request.contextPath}/css/login.css" type="text/css" rel="stylesheet">
	<script src="${pageContext.request.contextPath}/js/jquery-1.8.0.min.js"></script>
	<script>
		var verify = "${pageContext.request.contextPath}/admin_code.do";
		$(function() {
	    	$('#verify-img').attr('src', verify + '?time=' + Math.random());
	    	$('#verify-img').click(function() {
	        	$(this).attr('src', verify + '?' + Math.random());
	    	});
		    //$('#username').val('');
		    //$('#userpwd').val('');
		    //$('#verify').val('');
		    $('#username').focus();
		})
	</script>
</head>

<body>
	<div class="login">
		<div class="message">MIS管理系统登录</div>
		<div id="darkbannerwrap"></div>
		<form method="post" action="${pageContext.request.contextPath}/admin_login.do">
			<input name="username" id="username" placeholder="用户名" required="" type="text" value="${adminUser.username}" />
			<span id="tip">${msg.username}${msg.error}</span>
			<hr class="hr15">
			<input name="password" id="password" placeholder="密码" required="" type="password" value="${adminUser.password}">
			<span id="tip">${msg.password}</span>
			<hr class="hr15">
			<input name="verify" id="verify" placeholder="验证码" required="" type="text" maxlength="4" style="width:140px;">
			<span style="padding:20px auto auto 10px;vertical-align: middle;">
				<img style="cursor:pointer;position:absolute;width:120px;height:45px;margin-left:20px;" alt="看不清？点击更换"  id='verify-img'
				/>
			</span>
			
			<hr class="hr15">
			<span id="tip">${msg.verify}</span>
			<input value="登录" style="width:100%;" type="submit">
			<hr class="hr20">
		</form>
	</div>
	<div class="copyright">© 2018 Copy Rights Reserved
	</div>
</body>

</html>